package com.taoyeshu.modules.sys.entity;

import java.util.List;

import com.google.common.collect.Lists;
import com.taoyeshu.common.persistence.BaseEntity;

/**
 * 
 * @描述:角色entity
 * @作者 :HuanGe
 * @创建日期 :2015年9月24日 下午4:30:21
 *
 */
public class Role extends BaseEntity {

	private static final long serialVersionUID = 1L;
	private Integer id;
	private String name;// 角色名
	private String description;// 描述
	private Integer state;// 状态 1

	// 一个角色对应对个资源
	private List<Resource> resList = Lists.newArrayList();

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Integer getState() {
		return state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	public List<Resource> getResList() {
		return resList;
	}

	public void setResList(List<Resource> resList) {
		this.resList = resList;
	}

}
